<?php
require_once 'model/Order.php';

class OrderService
{
	private $order;
	
	public function __construct()
	{
		$this->order = Order::getInstance();
	}
	
	public function saveOrder(OrderVO $order)
	{
		return $this->order->saveOrder($order);
	}
	
	public function updateOrder(OrderVO $products)
	{
		return $this->order->updatePedido($products);
	}
	
	public function listOrder()
	{
		return $this->order->listOrder();
	}
	
	public function deleteOrder(OrderVO $products)
	{
		return $this->order->deleteOrder($products->idOrder);
	}
	
	public function searchOrder($products)
	{
		return $this->order->searchOrder($products);
	}
}